package snackfind.sjoerd.job;

import android.app.Activity;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.util.Log;
import android.widget.TextView;

public class Menukaart extends Activity {
	 //TextView text = (TextView) findViewById(R.id.McDonald);
	 //private SharedPreferences mPreferences;

    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.menukaart);
        
        
    }
    
    public void onResume(){
    	super.onResume();
    	//Preference pref = findPreference())
    	final TextView text = (TextView) findViewById(R.id.test);
    	Log.d(this.toString(),"hoi");
    	 //SharedPreferences mPreferences = getSharedPreferences("McDonald", Activity.MODE_PRIVATE);
    	SharedPreferences mPreferences = PreferenceManager.getDefaultSharedPreferences(getBaseContext());
    	
    	Log.d(this.toString(),mPreferences.getAll().toString());
     	 Log.d(this.toString(),((Boolean)mPreferences.getBoolean("BurgerKing", true)).toString()+"kk");
         
     	String a =  ((Boolean)mPreferences.getBoolean("BurgerKing", true)).toString();   	//text.setText()
    	
    	text.setText(a);
    }
        
    
    }
   
